<template>
 <div>
     <h2>form表单</h2>
     <div>
         <slot name="slotB"></slot>
     </div>
     <div>
         用户名：<input type="text">
     </div>
     <div>
         密码：<input type="password">
     </div>
     <div>
         <!-- <button>登录</button> -->
         <!-- 匿名插槽 -->
         <!-- <slot></slot> -->
         <!-- 具名插槽 -->
         <slot name="slotA"></slot>
     </div>
 </div>
</template>

<script>
export default {
    data(){
         return{}
    },
    created(){},
    methods:{},
    components:{}
}

</script>
<style scoped>
</style>